package com.usian.apis.admin;

import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.admin.pojos.AdChannel;
import com.usian.model.common.dtos.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;

public interface AdChannelControllerApi {
    /**
     * 根据名称分页查询频道列表
     * @param channelDto
     * @return
     */
    @ApiOperation("频道分页列表查询")
    ResponseResult findByNameAndPage(@RequestBody ChannelDto channelDto);

    /**
     * 新增
     * @param channel
     * @return
     */
    @ApiOperation("插入频道")
    ResponseResult save(@RequestBody AdChannel channel);

    /**
     * 修改
     * @param adChannel
     * @return
     */
    @ApiOperation("修改频道")
    ResponseResult update(@RequestBody AdChannel adChannel);

    /**
     * 删除
     * @param id
     * @return
     */
    @ApiOperation("删除频道")
    ResponseResult deleteById(Integer id);

    /**
     * 查询所有频道
     * @return
     */
    ResponseResult findAll();
}
